import Vue from 'vue'
import Router from 'vue-router'
import Login from "../components/Login";
import Home from "../components/Home";
import Header from "../components/page/Header";
import Aside from "../components/page/Aside";
import Main from "../components/page/Main";
import StudentElective from "../components/view/StudentElective";
import StudentCourse from "../components/view/StudentCourse";
import StudentCourseSelect from "../components/view/StudentCourseSelect";
import StudentScore from "../components/view/StudentScore";
import StudentSetting from "../components/view/StudentSetting";
import TeacherCourse from "../components/teacher/TeacherCourse";
import TeacherCourseSelect from "../components/teacher/TeacherCourseSelect";
import TeacherCourseSave from "../components/teacher/TeacherCourseSave";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/Home',
      name: 'Home',
      component: Home,
      children:[
        {
          path: '/',
          name: 'Main',
          component: Main
        },{
          path: '/StudentElective',
          name: 'StudentElective',
          component: StudentElective
        },{
          path: '/StudentCourse',
          name: 'StudentCourse',
          component: StudentCourse
        },{
          path: '/StudentCourseSelect',
          name: 'StudentCourseSelect',
          component: StudentCourseSelect
        },{
          path: '/StudentScore',
          name: 'StudentScore',
          component: StudentScore
        },{
          path: '/StudentSetting',
          name: 'StudentSetting',
          component: StudentSetting
        },{
          path: '/TeacherCourse',
          name: 'TeacherCourse',
          component: TeacherCourse
        },{
          path: '/TeacherCourseSelect',
          name: 'TeacherCourseSelect',
          component: TeacherCourseSelect
        },{
          path: '/TeacherCourseSave',
          name: 'TeacherCourseSave',
          component: TeacherCourseSave
        }
      ]
    },
    {
      path: '/Header',
      name: 'Header',
      component: Header
    },
    {
      path: '/Aside',
      name: 'Aside',
      component: Aside
    }
  ]
})
